package com.lee.serviceprovider.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2020/9/19 8:32 PM
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
public class TestController {


	@Autowired
	Environment environment;
	@GetMapping
	public String getInfo() {
		return environment.getProperty("local.server.port");
	}
}
